<template>
  <div class="auto">
    <div class="col-sm-12">
      <div class="col-sm-4"></div>
      <span>擅自改动燃气管道及设施--------------------------{{user[0].plumbing === 0 ? '否' :(user[0].plumbing === 1 ? '是' : '')}}</span>
    </div><br/><br/>
    <div class="col-sm-12">
      <div class="col-sm-4"></div>
      <span>燃气设施房间内住人--------------------------{{user[0].accommodate === 0 ? '否' : (user[0].accommodate === 1 ? '是' : '')}}</span>
    </div><br/><br/>
    <div class="col-sm-12">
      <div class="col-sm-4"></div>
      <span>告诉用户应该定期清除厨油污--------------------------{{user[0].cookingoil === 0 ? '否' : (user[0].cookingoil === 1 ? '是' : '')}}</span>
    </div><br/><br/>
    <div class="col-sm-12">
      <div class="col-sm-4"></div>
      <span>安装燃气泄漏报警器--------------------------{{user[0].annunciator === 0 ? '否' : (user[0].annunciator === 1 ? '是' : '')}}</span>
    </div><br/><br/>
    <div class="col-sm-12">
      <div class="col-sm-4"></div>
      <span>安装防爆照明灯--------------------------{{user[0].floodlight === 0 ? '否' : (user[0].floodlight === 1 ? '是' : '')}}</span>
    </div><br/><br/>
    <div class="col-sm-12">
      <div class="col-sm-4"></div>
      <span>作为其他电器设备的地接线--------------------------{{user[0].groundconnection === 0 ? '否' : (user[0].groundconnection === 1 ? '是' : '')}}</span>
    </div><br/><br/>
    <div class="col-sm-12">
      <div class="col-sm-4"></div>
      <span>管道及其气表上有物体搭挂--------------------------{{user[0].hitched === 0 ? '否' : (user[0].hitched === 1 ? '是' : '')}}</span>
    </div><br/><br/>
    <div class="col-sm-12">
      <div class="col-sm-4"></div>
      <span>管道锈蚀--------------------------{{user[0].pipelinecorrosion === 0 ? '否' : (user[0].pipelinecorrosion === 1 ? '是' : '')}}</span>
    </div><br/><br/>
    <div class="col-sm-12">
      <div class="col-sm-4"></div>
      <span>告知用户定期更换点火棒胶管--------------------------{{user[0].changeflexi === 0 ? '否' : (user[0].changeflexi === 1 ? '是' : '')}}</span>
    </div><br/><br/>
    <div class="col-sm-12">
      <div class="col-sm-4"></div>
      <span>连接软管牢固--------------------------{{user[0].strongconnection === 0 ? '否' : (user[0].strongconnection === 1 ? '是' : '')}}</span>
    </div><br/><br/>
    <div class="col-sm-12">
      <div class="col-sm-4"></div>
      <span>存在其他安全隐患--------------------------{{user[0].hiddendanger === 0 ? '否' : (user[0].hiddendanger === 1 ? '是' : '')}}</span>
    </div><br/><br/>
    <div class="col-sm-12">
      <div class="col-sm-4"></div>
      <span>发放用户安全宣传资料--------------------------{{user[0].publicitymaterial === 0 ? '否' : (user[0].publicitymaterial === 1 ? '是' : '')}}</span>
    </div><br/><br/>
    <div class="col-sm-12">
      <div class="col-sm-4"></div>
      <span>下达隐患整改通知书--------------------------{{user[0].noticeofrectification === 0 ? '否' : (user[0].noticeofrectification === 1 ? '是' : '')}}</span>
    </div><br/><br/>
    <div class="col-sm-12" >
        <div class="col-sm-4"></div>
        <span class="col-sm-3;form-control-static" >通知书编号</span>
        <span class="col-sm-3;form-control-static" >{{user[0].numid}}</span>
    </div><br/><br/>
    <div class="col-sm-12">
      <div class="col-sm-10"></div>
      <button class="btn btn-primary width-80" @click="$back()" v-el:cx>返回</button>
    </div>
  </div>
</template>

<script>
import co from 'co'
import { PagedList } from 'vue-client'
import * as Util from '../Util'
let checkplan = function * (self) {
  let condition = `f_userid=${self.data.f_userid} and f_checkid=${self.data.id}`
 yield self.$post('rs/sql/singleTable_OrderBy', {data:{items:'*',tablename:'t_hinvestigation',
  condition:condition,orderitem:'f_userid'}},
   {resolveMsg: null, rejectMsg: null})
  .then ((res)=> {
    self.user = res.data
  })
  .catch ((res)=> {
    self.$showMessage('获取用户数据失败，请查看你输入的查询信息')
  })
}
export default {
  title: '非民用隐患检查',
  data () {
    return {
      user:[]
    }
  },
  props: ['data'],
  ready () {
    let gen = checkplan(this)
    co(gen)
  },
  methods: {
    search () {

    },
  }
}
</script>
<style media="screen">
  .divtext {
    min-width: 50px;
    max-width: 200px;
    border: 1px solid green;
    display: inline-block;
  }
</style>
